class CreateWifiLogs < ActiveRecord::Migration
  def change
    create_table :wifi_logs do |t|
      t.references :wifi_account
      t.references :account
      t.string :mac
      t.string :ip
      t.datetime :start_at
      t.datetime :end_at

      t.timestamps
    end
    add_index :wifi_logs, :wifi_account_id
    add_index :wifi_logs, :account_id
  end
end
